<ion-header>
  <ion-navbar>
    <ion-title>
      我的员工
    </ion-title>
    <ion-buttons end>
      <button ion-button icon-only (click)="viewOrchange(0,null)">
        <ion-icon name="person-add"></ion-icon>
      </button>
    </ion-buttons>
  </ion-navbar>
</ion-header>
<ion-content padding>
  <ion-refresher (ionRefresh)="doRefresh()">
    <ion-refresher-content></ion-refresher-content>
  </ion-refresher>
  <div (click)="viewOrchange(1,staff.userid)" *ngFor="let  staff of staffList">
    <ion-card>
      <ion-card-header>
        <ion-row class="card-header">
          <ion-col text-left class="header-div">{{staff.name}}</ion-col><ion-col text-right>在岗</ion-col>
        </ion-row>
      </ion-card-header>
      <ion-card-content>
        <div class="card-content">
          <!--<div>{{staff.username}}</div>-->
          <div>{{staff.phonenum}}</div>
        </div>
      </ion-card-content>
    </ion-card>
  </div>
  <ion-infinite-scroll (ionInfinite)="$event.waitFor(doInfinite())">
    <ion-infinite-scroll-content loadingSpinner="bubbles" loadingText="正在加载下一页...">
    </ion-infinite-scroll-content>
  </ion-infinite-scroll>
</ion-content>
